libkovan
1
The kovan standard library
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
thread.h
Go to the documentation of this file.
1
#ifndef _THREAD_H_
2
#define _THREAD_H_
3
4
#include "
export.h
"
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
typedef
struct
11
{
12
void
*
data
;
13
}
mutex
;
14
15
typedef
struct
16
{
17
void
*
data
;
18
}
thread
;
19
20
typedef
void (*
thread_function
)();
21
22
EXPORT_SYM
mutex
mutex_create
(
void
);
23
EXPORT_SYM
void
mutex_lock
(
mutex
m);
24
EXPORT_SYM
int
mutex_trylock
(
mutex
m);
25
EXPORT_SYM
void
mutex_unlock
(
mutex
m);
26
EXPORT_SYM
void
mutex_destroy
(
mutex
m);
27
28
EXPORT_SYM
thread
thread_create
(
thread_function
func);
29
EXPORT_SYM
void
thread_start
(
thread
id
);
30
EXPORT_SYM
void
thread_wait
(
thread
id
);
31
EXPORT_SYM
void
thread_destroy
(
thread
id
);
32
33
#ifdef __cplusplus
34
}
35
#endif
36
37
#endif
include
kovan
thread.h
Generated on Mon Aug 19 2013 00:33:00 for libkovan by
1.8.4